package com.bym.mall.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * <p>
 * 支付信息
 * </p>
 *
 * @author bym
 * @date 2022/06/25
 */
@Data
@TableName("mall_pay_info")
@ApiModel(value = "PayInfo对象", description = "")
public class PayInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("用户id")
    private Integer userId;

    @ApiModelProperty("订单号")
    private Long orderNo;

    @ApiModelProperty("支付平台:1-支付宝,2-微信")
    private Integer payPlatform;

    @ApiModelProperty("支付流水号")
    private String platformNumber;

    @ApiModelProperty("支付状态")
    private String platformStatus;

    @ApiModelProperty("支付金额")
    private BigDecimal payAmount;

    @ApiModelProperty("创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty("更新时间")
    private LocalDateTime updateTime;
}
